package model;

import java.sql.Timestamp;

public class Major {
    private int id;
    private String majorCode;
    private String majorName;
    private String department;
    private String description;
    private String deptCode;
    private Timestamp createdAt;
    
    // 无参构造函数
    public Major() {}
    
    // 完整的构造函数
    public Major(int id, String majorCode, String majorName, String department, 
            String description, Timestamp createdAt) {
        this.id = id;
        this.majorCode = majorCode;
        this.majorName = majorName;
        this.department = department;
        this.description = description;
        this.createdAt = createdAt;
    }
    
    // 简化的构造函数
    public Major(String majorCode, String majorName, String department) {
        this.majorCode = majorCode;
        this.majorName = majorName;
        this.department = department;
    }
    
    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    
    public String getMajorCode() { return majorCode; }
    public void setMajorCode(String majorCode) { this.majorCode = majorCode; }
    
    public String getMajorName() { return majorName; }
    public void setMajorName(String majorName) { this.majorName = majorName; }
    
    public String getDepartment() { return department; }
    public void setDepartment(String department) { this.department = department; }
    
    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
    
    public Timestamp getCreatedAt() { return createdAt; }
    public void setCreatedAt(Timestamp createdAt) { this.createdAt = createdAt; }
    
    public String getDeptCode() {
        return deptCode;
    }
    
    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }
} 